<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>申请供应商</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <style>
        body {
            background: #fff
        }

        .content {
            margin: 1rem 1.6rem auto 1.6rem
        }

        input {
            font-size: .7rem !important;
            color: #333 !important;
            height: 1rem !important;
            line-height: 1rem !important;
            margin-top: .4rem !important;
        }

        .height-68 {
            height: 3.4rem;
            padding: .6rem 0 .4rem 0;
            width: 100%;
            border-bottom: 1px solid #E5E5E5
        }

        .btn {
            position: fixed;
            left: 1.6rem;
            bottom: 1.6rem;
            width: calc(100% - 3.2rem)
        }
    </style>
</head>

<body>
    <div id="app">
        <div class='content font-14 text-color-3'>
            <div class="height-68">
                <div class="">
                    您的名字
                </div>
                <input v-model="name" type="text" placeholder="请输入">
            </div>
            <div class="height-68">
                <div class="">
                    您的电话
                </div>
                <input v-model="phone" type="text" placeholder="请输入">
            </div>
            <div class="height-68">
                <div class="">
                    您的微信(选填)
                </div>
                <input v-model="wx" type="text" placeholder="请输入">
            </div>
            <div class="height-68">
                <div class="">
                    留言(选填)
                </div>
                <input v-model="message" type="text" placeholder="请告诉我们您意向合作的城市及领域~">
            </div>
        </div>

        <div class="">
            <button class='red-btn btn' tapmode @click='submitSupplier'>提交申请</button>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript " src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js "></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            name: '',
            phone: '',
            wx: '',
            message: ''
        },
        methods: {
            submitSupplier: function() {
               var requestData = {
                 name:this.name,
                 phone:this.phone,
                 wx:this.wx,
                 message:this.message
               }
            },
        }
    });
    apiready = function() {
        api.parseTapmode();
    };
</script>

</html>
